<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const r = Date.parse("2022-10-20 12:30:30");
      // console.log(r);

      const r = new Date("2022-10-20 12:30:30");
      console.log(+r);
      console.log(r.getTime());
    </script>
  </body>
</html>
